# Python 趣味编程：第 12 章
# 例題 12.2 尝试blit
# --------------------------
# 程序名: 12-blit.py

import pygame

RED = (255, 0, 0)

screen = pygame.display.set_mode((640, 320))  # 准备绘制区域
image = pygame.Surface((100, 100))   # 准备用于绘图的Surface
image.fill((0, 0, 0))                # 把背景涂成全黑

pygame.draw.circle(image, (255, 0, 0), (50, 50), 50)  # 最外侧
pygame.draw.circle(image, (191, 0, 0), (50, 50), 40)
pygame.draw.circle(image, (127, 0, 0), (50, 50), 30)
pygame.draw.circle(image, (63, 0, 0), (50, 50), 20)
pygame.draw.circle(image, (0, 0, 0), (50, 50), 10)    # 最内侧

screen.blit(image, (100, 100))   # 向 screen 的(100, 100)传送圆
screen.blit(image, (150, 150))   
screen.blit(image, (200, 200))
pygame.display.flip()           # 将绘制内容反映到画面上
